package cn.itcast.com.homework.day84;

public class User1 implements Runnable{
    private Num num;

    public User1(Num num) {
        this.num = num;
    }

    @Override
    public void run() {
        while (num.ninenine()){
            try {
                num.add1();
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
